/*
** eval_exp.c for bistromathique in /home/labonn_c//Documents/bistromathique
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Mon Oct 31 08:19:11 2011 christophe labonnemartinez
** Last update Wed Nov  2 20:59:58 2011 christophe labonnemartinez
*/

#include <stdlib.h>
#include "include/bistromathique.h"

char	*eval_brackets(char *str)
{
  while (*str != '\0' && *str != ')')
      str = str + 1;
  while (*str != '\0' && *str != '(')
      str = str - 1;
  return (str);
}

char	*eval_expr(char *str)
{
  char	*s2;
  str = "5+(5+5+(4+4))";

  s2 = eval_brackets(str);
  printf("%s", s2);
}

int	main()
{
  char	*str;

  eval_expr(str);
}
